<?php
class User {
	
	var $username;

	var $password;

	var $name;

	var $roles = array();

	function User($u,$p,$n){
		$this->username = $u;
		$this->password = $p;
		$this->name 	= $n;
	}

	function getUsername() {
		return $this->username;
	}
	
	function getPassword() {
		return $this->password;
	}
	
	function getRoles() {
		return $this->roles;
	}
	
	function addToRoles($roleId) {
		$this->roles[] = $roleId;
	}
	
}
?>
